using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using APjunktion.Common;
using System.Threading;
using APNotifications.Helper;

namespace APNotifications
{
    public partial class Dynamic : Form
    {
        private Enums.APControls _APControl;

        public string downloadUrl { get; set; }

        public Dynamic(Enums.APControls APControl)
        {
            InitializeComponent();
            _APControl = APControl;
                                
        }

        private void Dynamic_Load(object sender, EventArgs e)
        {
            switch (_APControl)
            {
                case Enums.APControls.Settings:
                    this.Settings.Visible = true;
                    break;
                case Enums.APControls.About:
                    this.About.Visible = true;
                    this.About.downloadUrl = downloadUrl;
                    break;               
                default:
                    break;
            }    
                              
        }
        


    }
}